package com.android.aircondition.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.android.aircondition.R;
import com.android.aircondition.constant.AppConstant;

public class WelcomeActivity extends BaseActivity{
	
	Handler mHandler =  new Handler(){
		public void handleMessage(android.os.Message msg) {
			
			Intent intent  = new Intent(WelcomeActivity.this,HomeActivity.class);
			startActivity(intent);
			finish();
			
		};
	};

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.welcome);
	}
	
	@Override
	protected void onResume() {
		
		mHandler.sendEmptyMessageDelayed(AppConstant.NO_0, 3000);
		super.onResume();
	}
}
